package Anagram;

/**
 * User: Vitalii Serdiuk
 * Date: 05.12.13 14:55
 */
public class Anagram {
    public void findAnagram(String inputFilePath, String encoding, String outputFilePath) {
        FileReader fileReader = new FileReader();
        TextAnalyser textAnalyser = new TextAnalyser();
        FileWriter fileWriter = new FileWriter();

        fileWriter.writeToFile(outputFilePath,
                textAnalyser.buildWordCode(
                        Word.readWord(
                                fileReader.readFile(inputFilePath, encoding))));
    }

    public static void main(String[] args){

    }
}
